package mds.chenji.against.Task;

import java.util.TimerTask;

import mds.chenji.against.gameroom.GameRoomManager;
import mds.chenji.against.gameroom.GlobalRoomGUI;
import mds.chenji.against.manager.ConfigManager;


public class Task extends TimerTask {

	@Override
	public void run() {
		for(short s:GameRoomManager.HallMap.keySet()){
			GameRoomManager.HallMap.get(s).waitingrefresh();
			GameRoomManager.RoomMap.get(s).Task();
			GlobalRoomGUI.F5();
		ConfigManager.Task();
		}
	
//		GameRoomManager.reloadRoomItem();
//		GlobalRoomGUI.F5(GameRoomManager.getGameRoomItem());
//		for (short s : GameRoomManager.RoomList.keySet()) {
//			if (GameRoomManager.RoomList.get(s).getWaiting()) {
//				GameRoomManager.RoomList.get(s).WaitingTitle();
//			}
//			if (GameRoomManager.RoomList.get(s).getFinish()) {
//			
//			}
//		}
	}

}
